import request from '@/utils/request'

// 查询字典数据列表
// 查询用户列表
export function listCoach(query) {
  return request({
    url: '/CoachManagement/selectCoach',
    method: 'get',
    params: query
  })
}

// 新增教练
export function addCoach(data) {
  return request({
    url: '/CoachManagement/addCoach',
    method: 'post',
    data: data,
    headers: {
         'Content-Type': 'multipart/form-data'
    }
  })
}

// 修改教练
export function updateVenue(data) {
  return request({
    url: '/CoachManagement/updVenue',
    method: 'post',
    data: data,
    headers: {
         'Content-Type': 'multipart/form-data'
    }
  })
}

// 删除教练图片
export function deletecoachImg(id,delImageIds) {
  return request({
    url: '/CoachManagement/deletecoachImg',
    method: 'delete',
    params: {
      "id" : id,
      "delImageId": delImageIds
    }
  })
}

// // 树查询 字段
// export function idName() {
//   return request({
//     url: 'course/idname',
//     method: 'get'
//   })
// }
